<template>
	<view class="card hospital_item">
		<view class="item_image">
			<image src='@/static/images/hospital_image.png' mode="aspectFill"></image>
		</view>
		<view class="item_info">
			<view class="info_title">
				<view class="title_text">
					淄博市中心医院
				</view>
				<view class="info_tips green">
					三甲
				</view>
				<view class="info_tips yellow">
					综合医院
				</view>
			</view>
			<view class="info_total">
				<view class="total_item">
					累计挂号量: <text class="nums">28</text>
				</view>
				<view class="total_item">
					挂号医生: <text class="nums">28</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "hospitalItem",
		props: {
			item: {
				type: [Object, String],
				default: () => {
					return {}
				}
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.hospital_item {
		margin-bottom: 30rpx;
		display: flex;
		align-items: center;
		padding: 40rpx 20rpx;

		.item_image {
			width: 90rpx;
			height: 90rpx;
			border-radius: 100%;
			overflow: hidden;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.item_info {
			margin-left: 10rpx;

			.info_title {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.title_text {
					font-weight: bold;
					font-size: 32rpx;
					color: #333333;
				}

				.info_tips {
					padding: 6rpx 10rpx;
					border-radius: 10rpx;
					font-size: 22rpx;
					margin-left: 20rpx;

					&.green {
						color: #23CC88;
						background-color: #DEF7ED;
					}

					&.yellow {
						color: #F1AE34;
						background-color: #FDF3E1;
					}
				}
			}

			.info_total {
				margin-top: 20rpx;
				display: flex;
				align-items: center;

				.total_item {
					margin-right: 30rpx;
					font-size: 24rpx;
					color: #999999;

					.nums {
						display: inline-block;
						margin-left: 20rpx;
						font-weight: bold;
						color: #333333;
					}
				}
			}
		}
	}
</style>